package com.ruiyian.bridge.info.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruiyian.bridge.info.domain.SensorWarningLog;

import java.util.List;
import java.util.Map;

/**
 * @Description: 超限预警日志
 * @Author: jeecg-boot
 * @Date:   2020-08-25
 * @Version: V1.0
 */
public interface SensorWarningLogMapper extends BaseMapper<SensorWarningLog> {

	/**
	 * 列表数据查询
	 * @param sensorWarningLog
	 * @return
	 */
	List<SensorWarningLog> list(SensorWarningLog sensorWarningLog);

	/**
	 * 处理
	 * @param sensorWarningLog
	 */
	void deal(SensorWarningLog sensorWarningLog);

	/**
	 * 统计类型预警
	 * @return
	 */
	List<Map<String,Object>> countWarnDgree();

	/**
	 * 根据传感器类型统计
	 * @return
	 */
	List<Map<String,Object>> countSensorType();


}
